package com.qijian.maindata.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.qijian.maindata.domain.Item;
import com.qijian.maindata.domain.query.ItemQuery;
import com.qijian.maindata.domain.vo.ItemVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Set;

/**
 * 物料档案Mapper接口
 *
 * @author qijian
 * @date 2021-09-01
 */
public interface ItemMapper extends BaseMapper<Item> {
    Page<ItemVo> selectPageVo(Page<Item> page, @Param(Constants.WRAPPER) Wrapper<ItemQuery> queryWrapper);

    List<Long> selectIdsList(@Param("ids") Set<Long> ids);
}
